<?php
$redis = new Redis();
$redis->connect('127.0.0.1', '6379', 5);
$redis->auth('123456');
$images = $redis->hGetAll('img_list');
$data = $temp = [];
foreach ($images as $k => $v) {
    $v = json_decode($v, true);
    $temp['id'] = $k;
    $temp['savePath'] = $v['savePath'];
    $temp['thumb_image'] = $v['thumb_image'];
    $temp['name'] = $v['name'];
    $data[] = $temp;
}

include_once "html/index.php";
